Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
C#
app.service("angularService", function ($http) {
    this.update = function (employee) {
        var response = $http({
            method: "post",
            url: "/Employee/Update",
            data: JSON.stringify(employee),
            dataType: "json"
        });
        return response;
    }
Posted
Comments
Sergey Alexandrovich Kryukov 7-May-15 9:29am    
Wrong question. A pattern cannot be a goal of programming. What do you want to achieve?
—SA

1 solution

1. I assume you mean "revealing" and not "releaving"
2. I suggest starting with this, http://weblogs.asp.net/dwahlin/techniques-strategies-and-patterns-for-structuring-javascript-code-revealing-prototype-pattern[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900