Exemple #1
0
 public HttpResponseMessage Put(EditProfileDTO profile)
 {
     try
     {
         return(ResponseWrapper.SuccessResponse(repository.EditProfile(profile)));
     }
     catch (Exception e)
     {
         return(ResponseWrapper.ExceptionResponse(e));
     }
 }
        public ActionResult EditProfile(string user, Profilee obj)

        {
            try
            {
                ProfileRepository PostRepo = new ProfileRepository();

                PostRepo.EditProfile(obj);
                return(RedirectToAction("MasterDetail"));
            }
            catch
            {
                return(View());
            }
        }