public object Find(int Id = 0) { var data = new { Entity = Entities.Template.Find(Id: Id).DetailJson(), Types = EnumInfo.ToList <Entities.TemplateType>() }; return(Success(data)); }
public object FindDeleted(int Id = 0) { var data = new { Entity = Entities.User.Find(Id: Id, Deleted: true).AdminJson(), Roles = EnumInfo.ToList <Entities.Role>(), Genders = EnumInfo.ToList <Entities.Gender>() }; return(Success(data)); }
public object Find(int Id = 0) { var data = new { Entity = Entities.Listing.Find(Id: Id).Json(IncludeUser: true), Categories = Entities.Category.List().Select(e => e.Json()), Conditions = EnumInfo.ToList <Entities.ListingCondition>(), Statuses = EnumInfo.ToList <Entities.ListingStatus>() }; return(Success(data)); }