Exemple #1
0
 public IHttpActionResult UpdateUserProfile(BE.UserProfile objUserProfile)
 {
     objUserProfileDAL = new DA.UserProfileDAL();
     qResult           = objUserProfileDAL.UpdateUserProfile(objUserProfile);
     if (qResult)
     {
         return(Ok("profile updated"));
     }
     else
     {
         return(BadRequest("error ocuure while updating"));
     }
 }
Exemple #2
0
 public IHttpActionResult GetUserProfile(string uiid)
 {
     objUserProfileDAL = new DA.UserProfileDAL();
     objUserProfile    = objUserProfileDAL.GetUserProfileByUIID(Guid.Parse(uiid.Replace("\"", "")));
     if (objUserProfile != null)
     {
         return(Ok(new { result = objUserProfile }));
     }
     else
     {
         return(BadRequest("error"));
     }
 }
Exemple #3
0
 public IHttpActionResult InsertUserProfile(BE.UserProfile objUserProfile)
 {
     objUserProfileDAL = new DA.UserProfileDAL();
     ReturnUpid        = objUserProfileDAL.InsertUserProfile(objUserProfile);
     if (ReturnUpid != Guid.Empty)
     {
         return(Ok("profile insterted"));
     }
     else
     {
         return(BadRequest("Error Occure While instering profile"));
     }
 }