Exemplo n.º 1
0
        public JsonResult AddLocation(Models.AjaxModels.NewLocationAjaxModel model)
        {
            Location location = new Location();
            AutoMapper.Mapper.Map(model, location);
            locationService.AddLocation(location);

            return Json("ok", JsonRequestBehavior.AllowGet);
        }
Exemplo n.º 2
0
 public Location AddLocation(Location location)
 {
     locationRepository.Add(location);
     return location;
 }