Beispiel #1
0
 public IHttpActionResult UserLocationInfoUpdate(Models.LocationDetail location)
 {
     return(GetJsonResult(new Models.BaseResponse()
     {
         ResponseObject = new MiddelLayer.Users().Update(location),
         Message = "Data update successfully.",
         StatusCode = 200
     }));
 }
Beispiel #2
0
        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
            });
        }
Beispiel #3
0
 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
     });
 }
Beispiel #4
0
 public bool Update(Models.LocationDetail location)
 {
     _dbCommands.ActionState(Assgin(location), System.Data.Entity.EntityState.Modified);
     return(_dbCommands.Save());
 }