public static Setting_user convertToDal(Setting_user_Entity set_user) { return(new Setting_user() { s_user_id = set_user.s_user_id, s_choose_criterion = set_user.s_choose_criterion, s_range = set_user.s_range }); }
// public static void EditSetting_user(Setting_user_Entity setting) { foreach (var item in db.Setting_user.ToList()) { if (item.s_user_id == setting.s_user_id) { item.s_choose_criterion = setting.s_choose_criterion; item.s_range = setting.s_range; db.SaveChanges(); } } }
public IHttpActionResult editSetting(Setting_user_Entity newUser_setting) { BLL.BLL_Setting_user.EditSetting_user(newUser_setting); return(Ok("sat added successfuly")); }