Ejemplo n.º 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
     }));
 }
Ejemplo n.º 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
            });
        }
Ejemplo n.º 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
     });
 }
Ejemplo n.º 4
0
 public bool Update(Models.LocationDetail location)
 {
     _dbCommands.ActionState(Assgin(location), System.Data.Entity.EntityState.Modified);
     return(_dbCommands.Save());
 }