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")); } }
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")); } }
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")); } }