public MasjidConstruction GetById(int id) { MasjidConstruction _masjidconst_localVar = new MasjidConstruction(); var masjidById = _tbl_MasjidConstruction.GetById(id); masjidById = masjidById ?? new tbl_MasjidConstruction(); _masjidconst_localVar = new MasjidConstruction { Id = masjidById.Id, Area = masjidById.Area, Head = masjidById.Head, ConstructionCost = masjidById.ConstructionCost, Floors = masjidById.Floors, AmountCollected = masjidById.AmountCollected, EngineerName = masjidById.EngineerName, EngineerContact = masjidById.EngineerContact, PlanImg = masjidById.PlanImg, // ElevationImg = masjidById.ElevationImg, ConstructionImg1 = masjidById.ConstructionImg1, Location = masjidById.Location, ConstructionImg2 = masjidById.ConstructionImg2, ConstructionImg3 = masjidById.ConstructionImg3, Status = masjidById.Status, UserId = masjidById.UserId, Name = (masjidById.tbl_User != null) ? masjidById.tbl_User.Name : string.Empty, //CommitteeId = masjidById.CommitteeId, //CommitteeName = (masjidById.tbl_AddMasjidCommittee != null) ? masjidById.tbl_AddMasjidCommittee.CommitteeName : string.Empty, }; return(_masjidconst_localVar); }
public MasjidRenovation GetById(int id) { MasjidRenovation _MasjidReno_localVar = new MasjidRenovation(); var _Exvar = _tbl_MasjidRenovation.GetById(id); _Exvar = _Exvar ?? new tbl_MasjidRenovation(); _MasjidReno_localVar = new MasjidRenovation { Id = _Exvar.Id, Area = _Exvar.Area, Head = _Exvar.Head, ConstructionCost = _Exvar.ConstructionCost, Floors = _Exvar.Floors, AmountCollected = _Exvar.AmountCollected, EngineerName = _Exvar.EngineerName, EngineerContact = _Exvar.EngineerContact, PlanImg = _Exvar.PlanImg, ElevationImg = _Exvar.ElevationImg, ConstructionImg1 = _Exvar.ConstructionImg1, Location = _Exvar.Location, ConstructionImg2 = _Exvar.ConstructionImg2, ConstructionImg3 = _Exvar.ConstructionImg3, Status = _Exvar.Status, UserId = _Exvar.UserId, MasjidId = _Exvar.MasjidId, Name = (_Exvar.tbl_User != null) ? _Exvar.tbl_User.Name : string.Empty, MasjidName = (_Exvar.tbl_AddMasjid != null) ? _Exvar.tbl_AddMasjid.MasjidName : string.Empty, }; return(_MasjidReno_localVar); }
public BillingModel GetCustomerOrderDetailsByOrderId(BillingModel model) { BillingModel _BillingModel = new BillingModel(); _BillingModel.BillingList = new List <BillingModel>(); var orderDetails = _OrderRepository.GetById(model.OrderId); if (orderDetails != null) { _BillingModel.SubTotal = orderDetails.ActualPrice; _BillingModel.GrandTotal = orderDetails.TotalPrice; _BillingModel.Discount = orderDetails.Discount; _BillingModel.Adjustment = orderDetails.Adjustment; _BillingModel.CustomerName = orderDetails.Customer.CustomerName; if (orderDetails.OrderDetails != null && orderDetails.OrderDetails.Any()) { _BillingModel.BillingList = (from @orderDetailsBill in orderDetails.OrderDetails select new BillingModel { ProductNameId = (@orderDetailsBill.Product != null)? @orderDetailsBill.Product.ID:0, ProductName = (@orderDetailsBill.Product != null) ? @orderDetailsBill.Product.ProductName : string.Empty, ProductQuantity = @orderDetailsBill.Quantity, ProductPrice = @orderDetailsBill.UnitPrice, ProductAmount = @orderDetailsBill.TotalPrice, ProductDiscount = orderDetailsBill.Discount }).ToList(); } } return(_BillingModel); }
public MasjidExtension GetById(int id) { MasjidExtension _MasjidExtension = new MasjidExtension(); var MasjidExtensionbyId = _tbl_MasjidExtension.GetById(id); MasjidExtensionbyId = MasjidExtensionbyId ?? new tbl_MasjidExtension(); _MasjidExtension = new MasjidExtension { Id = MasjidExtensionbyId.Id, UserId = MasjidExtensionbyId.UserId, UserContact = (MasjidExtensionbyId.tbl_User != null) ? MasjidExtensionbyId.tbl_User.Mobile : string.Empty, SadrEMasjid = (MasjidExtensionbyId.tbl_AddMasjid.tbl_User != null) ? MasjidExtensionbyId.tbl_AddMasjid.tbl_User.Name : string.Empty, Location = MasjidExtensionbyId.Location, MasjidName = MasjidExtensionbyId.tbl_AddMasjid.MasjidName, Area = MasjidExtensionbyId.Area, ConstructionCost = MasjidExtensionbyId.ConstructionCost, ExistingFloors = MasjidExtensionbyId.ExistingFloors, AmountCollected = MasjidExtensionbyId.AmountCollected, CommitteeName = MasjidExtensionbyId.tbl_AddMasjidCommittee.CommitteeName, Name = MasjidExtensionbyId.tbl_User.Name, Head = MasjidExtensionbyId.Head, EngineerName = MasjidExtensionbyId.EngineerName, EngineerContact = MasjidExtensionbyId.EngineerContact, ElevationImg = MasjidExtensionbyId.ElevationImg, PlanImg = MasjidExtensionbyId.PlanImg, ConstructionImg1 = MasjidExtensionbyId.ConstructionImg1, ConstructionImg2 = MasjidExtensionbyId.ConstructionImg2, ConstructionImg3 = MasjidExtensionbyId.ConstructionImg3, CreatedDate = MasjidExtensionbyId.CreatedDate, CreatedBy = MasjidExtensionbyId.CreatedBy, Status = MasjidExtensionbyId.Status }; return(_MasjidExtension); }
public NewMadarsaOperationsRequestModel GetById(int id) { NewMadarsaOperationsRequestModel varList = new NewMadarsaOperationsRequestModel(); var item = tbl_NewMadarsaOperationsRequestModel.GetById(id); item = item ?? new NewMadarsaOperationsRequest(); varList = new NewMadarsaOperationsRequestModel { Id = item.Id, ShortDescription = item.ShortDescription, Location = item.Location, Area = item.Area, ExpectedStudents = item.ExpectedStudents, Girls = item.Girls, Boys = item.Boys, Teachers = item.Teachers, IsResidential = item.IsResidential, MonthlyConst = item.MonthlyConst, CostPerStudent = item.CostPerStudent, RevenueSource = item.RevenueSource, TotalLandArea = item.TotalLandArea, ConstructedArea = item.ConstructedArea, IsRented = item.IsRented, ChargingStudent = item.ChargingStudent, IfChargingHowmuch = item.IfChargingHowmuch, Doc1 = item.Doc1, Doc2 = item.Doc2, Doc3 = item.Doc3, Pic1 = item.Pic1, Pic2 = item.Pic2, Pic3 = item.Pic3, Status = item.Status, CreatedDate = item.CreatedDate, // CreatedBy = item.CreatedBy, UserId = item.UserId, UserName = (item.User != null) ? item.User.Name : string.Empty, MadarsaId = item.MadarsaId, MadarsaName = (item.Madarsa != null) ? item.Madarsa.Name : string.Empty, RequestTypeId = item.RequestTypeId, RequestTypeName = (item.RequestType != null) ? item.RequestType.Name : string.Empty, RequestSubmitId = item.RequestSubmitId, // RequestSubmitId }; varList.RequestCommentList = new RequestCommentBs().BoardCommentList(id); varList.ApprovedList = new RequestApproveRejectBs().ApproveRejectDisplay(id); return(varList); }
public ZoneModel GetById(int id) { ZoneModel _Zone = new ZoneModel(); var item = _tbl_Zone.GetById(id); item = item ?? new Zone(); _Zone = new ZoneModel { Id = item.Id, Name = item.Name, }; return(_Zone); }
public CategoryModel Getbyid(int id) { CategoryModel _category = new CategoryModel(); var categorybyId = _Category.GetById(id); categorybyId = categorybyId ?? new Category(); _category = new CategoryModel { CategoryId = categorybyId.ID, CategoryName = categorybyId.CategoryName, ParentId = Convert.ToInt32(categorybyId.ParentID) }; return(_category); }
public CustomerModel Getbyid(int id) { CustomerModel _customer = new CustomerModel(); var customerbyId = _Customer.GetById(id); customerbyId = customerbyId ?? new Customer(); _customer = new CustomerModel { ID = customerbyId.ID, CustomerName = customerbyId.CustomerName, Mobile = customerbyId.Mobile, Email = customerbyId.Email, DOB = Convert.ToDateTime(customerbyId.DOB), }; return(_customer); }
public MadarsaExtensionRequestModel GetById(int id) { MadarsaExtensionRequestModel varList = new MadarsaExtensionRequestModel(); var item = tbl_MadarsaExtensionRequest.GetById(id); item = item ?? new MadarsaExtensionRequest(); varList = new MadarsaExtensionRequestModel { Id = item.Id, ShortDescription = item.ShortDescription, Location = item.Location, Area = item.Area, ConstructionCost = item.ConstructionCost, ExistingFloors = item.ExistingFloors, AmountNeeded = item.AmountNeeded, Engineer = item.Engineer, Elevation = item.Elevation, Paln = item.Paln, Doc1 = item.Doc1, Doc2 = item.Doc2, Doc3 = item.Doc3, Pic1 = item.Pic1, Pic2 = item.Pic2, Pic3 = item.Pic3, Status = item.Status, CreatedDate = item.CreatedDate, // CreatedBy = item.CreatedBy, UserId = item.UserId, UserName = (item.User != null) ? item.User.Name : string.Empty, MadarsaId = item.MadarsaId, MadarsaName = (item.Madarsa != null) ? item.Madarsa.Name : string.Empty, RequestTypeId = item.RequestTypeId, RequestTypeName = (item.RequestType != null) ? item.RequestType.Name : string.Empty, RequestSubmitId = item.RequestSubmitId, // RequestSubmitId }; varList.BoardCommentList = new RequestCommentBs().BoardCommentList(id); varList.ApprovedList = new RequestApproveRejectBs().ApproveRejectDisplay(id); return(varList); }
public AddHalqa GetById(int id) { AddHalqa _AddHalqa = new AddHalqa(); var HalqabyId = _tbl_AddHalqa.GetById(id); HalqabyId = HalqabyId ?? new tbl_AddHalqa(); _AddHalqa = new AddHalqa { Id = HalqabyId.Id, HalqaName = HalqabyId.HalqaName, Area = HalqabyId.Area, CreatedDate = HalqabyId.CreatedDate, CreatedBy = HalqabyId.CreatedBy, Status = HalqabyId.Status }; return(_AddHalqa); }
public MadarsaLandRequestModel GetById(int id) { MadarsaLandRequestModel varList = new MadarsaLandRequestModel(); var item = tbl_MadarsaLandRequest.GetById(id); item = item ?? new MadarsaLandRequest(); varList = new MadarsaLandRequestModel { Id = item.Id, ShortDescription = item.ShortDescription, Location = item.Location, Area = item.Area, TimePeriod = item.TimePeriod, AmountPaid = item.AmountPaid, AmountNeeded = item.AmountNeeded, LandArea = item.LandArea, LandPrice = item.LandPrice, PurchasingFrom = item.PurchasingFrom, Doc1 = item.Doc1, Doc2 = item.Doc2, Doc3 = item.Doc3, Pic1 = item.Pic1, Pic2 = item.Pic2, Pic3 = item.Pic3, Status = item.Status, CreatedDate = item.CreatedDate, UserId = item.UserId, UserName = (item.User != null) ? item.User.Name : string.Empty, MadarsaId = item.MadarsaId, MadarsaName = (item.Madarsa != null) ? item.Madarsa.Name : string.Empty, RequestTypeId = item.RequestTypeId, RequestTypeName = (item.RequestType != null) ? item.RequestType.Name : string.Empty, RequestSubmitId = item.RequestSubmitId, }; varList.RequestCommentList = new RequestCommentBs().BoardCommentList(id); varList.ApprovedList = new RequestApproveRejectBs().ApproveRejectDisplay(id); return(varList); }
public AddMasjidCommittee GetById(int id) { AddMasjidCommittee _AddMasjidCommittee = new AddMasjidCommittee(); var MasjidCommitteebyId = _tbl_AddMasjidCommittee.GetById(id); MasjidCommitteebyId = MasjidCommitteebyId ?? new tbl_AddMasjidCommittee(); _AddMasjidCommittee = new AddMasjidCommittee { Id = MasjidCommitteebyId.Id, CommitteeName = MasjidCommitteebyId.CommitteeName, MasjidId = MasjidCommitteebyId.MasjidId, MasjidName = (MasjidCommitteebyId.tbl_AddMasjid != null) ? MasjidCommitteebyId.tbl_AddMasjid.MasjidName : string.Empty, CreatedDate = MasjidCommitteebyId.CreatedDate, CreatedBy = MasjidCommitteebyId.CreatedBy, Status = MasjidCommitteebyId.Status }; return(_AddMasjidCommittee); }
public ProductModel GetProductbyId(int id) { ProductModel _product = new ProductModel(); var productbyId = _Product.GetById(id); productbyId = productbyId ?? new Product(); _product = new ProductModel { ID = productbyId.ID, ProductName = productbyId.ProductName, CategoryId = Convert.ToInt32(productbyId.CategoryId), Description = productbyId.Description, Price = Convert.ToDecimal(productbyId.Price), Image = productbyId.Image, ImageType = productbyId.ImageType }; return(_product); }
public int Save(RequestSubmitModel model) { RequestSubmit requestSubmit = new RequestSubmit(model); int id = model.Id; var res = _RequestSubmit.GetById(id); // res.IsApproved = model.IsApproved; // res.CreatedDate = Convert.ToDateTime(System.DateTime.Now); if (model.Id != null && model.Id != 0) { _RequestSubmit.Update(res); } else { requestSubmit = _RequestSubmit.Insert(requestSubmit); } return(requestSubmit.Id); }
public CourseSessionModel GetById(long id) { var res = _CourseSession.GetById(Convert.ToInt32(id)); CourseSessionModel obj = new CourseSessionModel(); obj.Id = res.Id; obj.Topic = res.Topic; obj.CourseID = res.CourseID; obj.Document1 = res.Document1; obj.Document2 = res.Document2; obj.AudioLink = res.AudioLink; obj.VideoLink = res.VideoLink; obj.CreatedOn = res.CreatedOn; obj.CreatedBy = res.CreatedBy; //}).FirstOrDefault(); return(obj); }
public AddMasjidCommitteeMember GetById(int id) { AddMasjidCommitteeMember _AddMasjidCommitteeMember = new AddMasjidCommitteeMember(); var item = _tbl_AddMasjidCommitteeMember.GetById(id); item = item ?? new tbl_AddMasjidCommitteeMember(); _AddMasjidCommitteeMember = new AddMasjidCommitteeMember { Id = item.Id, CommitteeId = item.CommitteeId, CommitteeName = (item.tbl_AddMasjidCommittee != null) ? item.tbl_AddMasjidCommittee.CommitteeName : string.Empty, UserID = item.UserID, UserName = (item.tbl_User != null) ? item.tbl_User.Name : string.Empty, CreateDate = item.CreateDate, CreatedBy = item.CreatedBy, Status = item.Status }; return(_AddMasjidCommitteeMember); }
public CourseModel GetById(int id) { CourseModel _CourseList = new CourseModel(); var item = _tbl_Course.GetById(id); item = item ?? new Course(); _CourseList = new CourseModel { Id = item.Id, Name = item.Name, Description = item.Description, Status = item.Status, IsDelete = item.IsDelete, CreatedOn = item.CreatedOn, UpdatedOn = item.UpdatedOn, CreatedBy = item.CreatedBy, UpdatedBy = item.UpdatedBy }; return(_CourseList); }
public MasjidConstructionRequestModel GetById(int id) { MasjidConstructionRequestModel _MasjidConstructionRequest = new MasjidConstructionRequestModel(); var MCRbyId = _tbl_MCR.GetById(id); MCRbyId = MCRbyId ?? new MasjidConstructionRequest(); _MasjidConstructionRequestModel = new MasjidConstructionRequestModel { Id = MCRbyId.Id, ShortDescription = MCRbyId.ShortDescription, UserId = MCRbyId.UserId, UserName = (MCRbyId.User != null) ? MCRbyId.User.UserName : string.Empty, Location = MCRbyId.Location, Area = MCRbyId.Area, MasjidId = MCRbyId.MasjidId, MasjidName = (MCRbyId.Masjid != null) ? MCRbyId.Masjid.Name : string.Empty, ConstructionCost = Convert.ToInt32(MCRbyId.ConstructionCost), ExistingFloors = MCRbyId.ExistingFloors, AmountNeeded = MCRbyId.AmountNeeded, Engineer = MCRbyId.Engineer, Elevation = MCRbyId.Elevation, Paln = MCRbyId.Paln, Doc1 = MCRbyId.Doc1, Doc2 = MCRbyId.Doc2, Doc3 = MCRbyId.Doc3, Pic1 = MCRbyId.Pic1, Pic2 = MCRbyId.Pic2, Pic3 = MCRbyId.Pic3, RequestSubmitId = MCRbyId.RequestSubmitId, //RequestSubmitName= (item.RequestSubmit != null) ? item.RequestSubmit.Name : string.Empty, Status = MCRbyId.Status, CreatedDate = MCRbyId.CreatedDate, RequestTypeId = MCRbyId.RequestTypeId, RequestTypeName = (MCRbyId.RequestType != null) ? MCRbyId.RequestType.Name : string.Empty, }; _MasjidConstructionRequestModel.RequestCommentList = new RequestCommentBs().BoardCommentList(id); _MasjidConstructionRequestModel.ApprovedList = new RequestApproveRejectBs().ApproveRejectDisplay(id); return(_MasjidConstructionRequestModel); }
public MasjidLandRequestModel GetById(int id) { MasjidLandRequestModel _MasjidLandRequestModel = new MasjidLandRequestModel(); var MLRbyId = _tbl_MLR.GetById(id); MLRbyId = MLRbyId ?? new MasjidLandRequest(); _MasjidLandRequestModel = new MasjidLandRequestModel { Id = MLRbyId.Id, ShortDescription = MLRbyId.ShortDescription, UserId = MLRbyId.UserId, UserName = (MLRbyId.User != null) ? MLRbyId.User.UserName : string.Empty, Location = MLRbyId.Location, Area = MLRbyId.Area, MasjidId = MLRbyId.MasjidId, MasjidName = (MLRbyId.Masjid != null) ? MLRbyId.Masjid.Name : string.Empty, TimePeriod = MLRbyId.TimePeriod, AmountPaid = MLRbyId.AmountPaid, AmountNeeded = MLRbyId.AmountNeeded, LandArea = MLRbyId.LandArea, LandPrice = MLRbyId.LandPrice, PurchasingFrom = MLRbyId.PurchasingFrom, Doc1 = MLRbyId.Doc1, Doc2 = MLRbyId.Doc2, Doc3 = MLRbyId.Doc3, Pic1 = MLRbyId.Pic1, Pic2 = MLRbyId.Pic2, Pic3 = MLRbyId.Pic3, RequestSubmitId = MLRbyId.RequestSubmitId, //RequestSubmitName= (item.RequestSubmit != null) ? item.RequestSubmit.Name : string.Empty, Status = MLRbyId.Status, CreatedDate = MLRbyId.CreatedDate, RequestTypeId = MLRbyId.RequestTypeId, RequestTypeName = (MLRbyId.RequestType != null) ? MLRbyId.RequestType.Name : string.Empty, }; _MasjidLandRequestModel.RequestCommentList = new RequestCommentBs().BoardCommentList(id); _MasjidLandRequestModel.ApprovedList = new RequestApproveRejectBs().ApproveRejectDisplay(id); return(_MasjidLandRequestModel); }
//public void Delete(MadarsaModel entity) //{ // Madarsa AddMadarsaData = new Madarsa(entity); // using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope()) // { // if (entity.Id != null && entity.Id != 0) // { // _tbl_Madarsa.Delete(AddMadarsaData.Id); // } // scope.Complete(); // } //} public MadarsaModel GetById(int id) { MadarsaModel _Madarsa = new MadarsaModel(); var item = _tbl_Madarsa.GetById(id); item = item ?? new Madarsa(); _Madarsa = new MadarsaModel { Id = item.Id, Name = item.Name, Location = item.Location, Mobile = item.Mobile, HeadUserId = item.HeadUserId, UserName = (item.User != null) ? item.User.UserName : string.Empty, ZoneName = (item.Zone != null) ? item.Zone.Name : string.Empty, CreatedDate = item.CreatedDate, CreatedBy = item.CreatedBy, }; return(_Madarsa); }
public AddMasjid GetById(int id) { AddMasjid _AddMasjid = new AddMasjid(); var MasjidbyId = _tbl_AddMasjid.GetById(id); MasjidbyId = MasjidbyId ?? new tbl_AddMasjid(); _AddMasjid = new AddMasjid { Id = MasjidbyId.Id, MasjidName = MasjidbyId.MasjidName, SadarUserId = MasjidbyId.SadarUserId, SadarUserName = (MasjidbyId.tbl_User != null) ? MasjidbyId.tbl_User.Name : string.Empty, HalqaId = MasjidbyId.HalqaId, HalqaName = (MasjidbyId.tbl_AddHalqa != null) ? MasjidbyId.tbl_AddHalqa.HalqaName : string.Empty, Lattitude = MasjidbyId.Lattitude, Longitude = MasjidbyId.Longitude, CreatedBy = MasjidbyId.CreatedBy, CreatedDate = MasjidbyId.CreatedDate, Status = MasjidbyId.Status }; return(_AddMasjid); }
public AddMadarsa GetById(int id) { AddMadarsa _AddMadarsa = new AddMadarsa(); var MadarsabyId = _tbl_AddMadarsa.GetById(id); MadarsabyId = MadarsabyId ?? new tbl_AddMadarsa(); _AddMadarsa = new AddMadarsa { Id = MadarsabyId.Id, MadarsaName = MadarsabyId.MadarsaName, HeadUserId = MadarsabyId.HeadUserId, HeadUserName = (MadarsabyId.tbl_User != null) ? MadarsabyId.tbl_User.Name : string.Empty, HalqaId = MadarsabyId.HalqaId, HalqaName = (MadarsabyId.tbl_AddHalqa != null) ? MadarsabyId.tbl_AddHalqa.HalqaName : string.Empty, Latitude = MadarsabyId.Latitude, Longitude = MadarsabyId.Longitude, CreatedDate = MadarsabyId.CreatedDate, CreatedBy = MadarsabyId.CreatedBy, Status = MadarsabyId.Status }; return(_AddMadarsa); }
public MasjidLandRequest GetById(int id) { MasjidLandRequest _masjidLandRequest = new MasjidLandRequest(); var item = _tbl_MasjidLandRequest.GetById(id); item = item ?? new tbl_MasjidLandRequest(); _masjidLandRequest = new MasjidLandRequest { Id = item.Id, MasjidId = item.MasjidId, MasjidName = (item.tbl_AddMasjid != null) ? item.tbl_AddMasjid.MasjidName : string.Empty, UserId = item.UserId, UserName = (item.tbl_User != null) ? item.tbl_User.Name : string.Empty, Location = item.Location, LandArea = item.LandArea, LandPrice = item.LandPrice, TotalLandValue = item.TotalLandValue, PurchasingFrom = item.PurchasingFrom, AmountPaid = item.AmountPaid, AmountNeeded = item.AmountNeeded, TimePeriod = item.TimePeriod, CommitteId = item.CommitteId, CommitteeName = (item.tbl_AddMasjidCommittee != null) ? item.tbl_AddMasjidCommittee.CommitteeName : string.Empty, CommitteHead = item.CommitteHead, CommitteHeadName = (item.tbl_User != null) ? item.tbl_User.Name : string.Empty, Picture1 = item.Picture1, Picture2 = item.Picture2, Picture3 = item.Picture3, Picture4 = item.Picture4, ReligiouPlaces = item.ReligiouPlaces, ReligiousPlaceDetails = item.ReligiousPlaceDetails, ReligiousPlaceHowFar = item.ReligiousPlaceHowFar, CreatedDate = item.CreatedDate, CreatedBy = item.CreatedBy, Status = item.Status }; return(_masjidLandRequest); }
public ExistingMadarsaOperations GetById(int id) { ExistingMadarsaOperations _EMO_localVar = new ExistingMadarsaOperations(); var _Exvar = _tbl_ExistingMadarsaOperations.GetById(id); _Exvar = _Exvar ?? new tbl_ExistingMadarsaOperations(); _EMO_localVar = new ExistingMadarsaOperations { Id = _Exvar.Id, HeadMasterName = _Exvar.HeadMasterName, Head = _Exvar.Head, ExpectedStudents = _Exvar.ExpectedStudents, Boys = _Exvar.Boys, Girls = _Exvar.Girls, Teachers = _Exvar.Teachers, Residential = _Exvar.Residential, MonthlyCost = _Exvar.MonthlyCost, PerStudentCost = _Exvar.PerStudentCost, SourceofRevenue = _Exvar.SourceofRevenue, Location = _Exvar.Location, Address = _Exvar.Address, OwnRented = _Exvar.OwnRented, TotalLandArea = _Exvar.TotalLandArea, ConstructedArea = _Exvar.ConstructedArea, ChargingStudent = _Exvar.ChargingStudent, Howmuch = _Exvar.Howmuch, Picture1 = _Exvar.Picture1, Picture2 = _Exvar.Picture2, Picture3 = _Exvar.Picture3, Picture4 = _Exvar.Picture4, Status = _Exvar.Status, CommitteeId = _Exvar.CommitteeId, CommitteeName = (_Exvar.tbl_AddMadarsaCommittee != null) ? _Exvar.tbl_AddMadarsaCommittee.CommitteeName : string.Empty, }; return(_EMO_localVar); }
public NewMadarsaOperation GetById(int id) { NewMadarsaOperation _NewMadOp_LV = new NewMadarsaOperation(); var item = _tbl_NewMadarsaOperations.GetById(id); item = item ?? new tbl_NewMadarsaOperations(); _NewMadOp_LV = new NewMadarsaOperation { Id = item.Id, HeadMasterName = item.HeadMasterName, Head = item.Head, ExpectedStudents = item.ExpectedStudents, Boys = item.Boys, Girls = item.Girls, Teachers = item.Teachers, Residential = item.Residential, MonthlyCost = item.MonthlyCost, PerStudentCost = item.PerStudentCost, SourceofRevenue = item.SourceofRevenue, Location = item.Location, Address = item.Address, OwnRented = item.OwnRented, TotalLandArea = item.TotalLandArea, ConstructedArea = item.ConstructedArea, ChargingStudent = item.ChargingStudent, Howmuch = item.Howmuch, Picture1 = item.Picture1, Picture2 = item.Picture2, Picture3 = item.Picture3, Picture4 = item.Picture4, Status = item.Status, UserId = item.UserId, Name = (item.tbl_User != null) ? item.tbl_User.Name : string.Empty, CommitteeId = item.CommitteeId, CommitteeName = (item.tbl_AddMadarsaCommittee != null) ? item.tbl_AddMadarsaCommittee.CommitteeName : string.Empty, }; return(_NewMadOp_LV); }
public MasjidModel GetById(int id) { MasjidModel _Halqa = new MasjidModel(); var MasjidbyId = _tbl_Masjid.GetById(id); _Masjid = new MasjidModel { Id = MasjidbyId.Id, Name = MasjidbyId.Name, Location = MasjidbyId.Location, HeadUserId = MasjidbyId.HeadUserId, UserName = (MasjidbyId.User != null) ? MasjidbyId.User.UserName : string.Empty, ZoneId = MasjidbyId.ZoneId, ZoneName = (MasjidbyId.Zone != null) ? MasjidbyId.Zone.Name : string.Empty, Mobile = MasjidbyId.Mobile, CreatedDate = MasjidbyId.CreatedDate, CreatedBy = MasjidbyId.CreatedBy, Latitude = MasjidbyId.Latitude, Longitude = MasjidbyId.Longitude }; return(_Masjid); }