public LocationDTO UpdateLocation(LocationDTO local)
{
var temp = uOW.LocationRepo.Get(u => u.UserId == local.UserId).FirstOrDefault();
if (temp == null)
{
return null;
}
uOW.LocationRepo.SetStateModified(temp);
temp.DistrictId = local.DistrictId;
uOW.Save();
return Mapper.Map<LocationDTO>(temp);
}