Exemplo n.º 1
0
 public async Task<object> UpdateLatLong(UpdateLatLongModel model)
 {
     DriverService dservice = new DriverService();
     int i=await dservice.UpdateLatLong2(model.UserId, model.UserType, model.Latitude, model.Longitude,model.UpdateDate,model.UpdateTime);
     Dictionary<string, object> dic = new Dictionary<string, object>();
     if (i != 0)
     {
         dic.Add("Code", "200");
         dic.Add("Message", "Global Cords Updated Successfully.");
     }
     else
     {
         dic.Add("Code", "201");
         dic.Add("Message", "Global Cords Not Updated.");
     }
     return dic;
 }