public Models.Profile.Profile Update(Models.Profile.Profile entity) { var profile = entity.ToProfile(); _connection.Update(profile); return(entity); }
public Models.Profile.Profile Save(Models.Profile.Profile entity) { var profile = entity.ToProfile(); _connection.Insert(profile); return(entity); }
public ActionResult ReadProfile(int?user_id) { var x = new Models.Profile.Profile(); var data = x.ReadProfile(user_id ?? 0); var output = new { data = data }; return(Content(JsonConvert.SerializeObject(output), "application/json")); }