public JsonResult GetLocationById(long id) { try { var location = _locationsBusiness.GetById(id); if (location != null) { Common.Location obj = new Common.Location(); obj.Id = location.Id; obj.ParentId = location.ParentId; obj.Name = location.Name; obj.Icon = location.Icon; obj.Order = location.Order; return(Json(obj, JsonRequestBehavior.AllowGet)); } else { return(Json(0)); } } catch (Exception) { throw; } }
public StaffMember() { Location = new Location(); Contact = new Contact(); }