public IHttpActionResult UserLocationInfoUpdate(Models.LocationDetail location) { return(GetJsonResult(new Models.BaseResponse() { ResponseObject = new MiddelLayer.Users().Update(location), Message = "Data update successfully.", StatusCode = 200 })); }
public ActionReturn Insert(Models.LocationDetail location) { DB.LocationDetail detail = Assgin(location); _dbCommands.Insert(detail); bool status = _dbCommands.Save(); return(new ActionReturn() { Id = detail.AID, Status = status }); }
private DB.LocationDetail Assgin(Models.LocationDetail location) { return(new DB.LocationDetail() { AID = location.ID, ACode = location.Code, ACity = location.City, ACountry = location.Country, Address = location.Address, ALocation = location.Location, AStrees = location.Strees, AState = location.State, ALat = location.Lat, ALng = location.Lng, IsActive = location.IsActive, Refernceid = location.Refernceid }); }
public bool Update(Models.LocationDetail location) { _dbCommands.ActionState(Assgin(location), System.Data.Entity.EntityState.Modified); return(_dbCommands.Save()); }