Esempio n. 1
0
        public async Task <int> AddMOM(MOM mom)
        {
            db.MOMs.Add(mom);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 2
0
        public async Task <int> AddTeaser(Teaser Teaser)
        {
            db.Teasers.Add(Teaser);
            int result = await db.SaveChangesAsync();

            return(result);
        }
        public async Task <int> AddQueryRefDocument(QueryRefDocument queryrefdocument)
        {
            db.QueryRefDocuments.Add(queryrefdocument);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 4
0
        public async Task <int> AddPromoter(Promoter Promoter)
        {
            db.Promoters.Add(Promoter);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 5
0
        public async Task <int> AddLender(Lender Lender)
        {
            db.Lenders.Add(Lender);
            int result = await db.SaveChangesAsync();

            return(result);
        }
        public async Task <int> AddCostBreakup(CostBreakup CostBreakup)
        {
            db.CostBreakups.Add(CostBreakup);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 7
0
        public async Task <int> AddReply(Reply reply)
        {
            db.Replies.Add(reply);
            int result = await db.SaveChangesAsync();

            return(result);
        }
        public async Task <int> AddClientDetail(ClientDetail clientdetail)
        {
            db.ClientDetails.Add(clientdetail);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 9
0
        public async virtual Task <int> Insert(TEntity entity)
        {
            dbSet.Add(entity);
            int result = await contextdb.SaveChangesAsync();

            return(result);
        }
        public async Task <int> AddAuthorisedPerson(AuthorisedPerson AuthorisedPerson)
        {
            db.AuthorisedPersons.Add(AuthorisedPerson);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 11
0
        public async Task <int> AddAgency(Agency agency)
        {
            db.Agencys.Add(agency);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 12
0
        public async Task <int> AddDirector(Director Director)
        {
            db.Directors.Add(Director);
            int result = await db.SaveChangesAsync();

            return(result);
        }
        public async Task <int> AddStrategyProposal(StrategyProposal StrategyProposal)
        {
            db.StrategyProposals.Add(StrategyProposal);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 14
0
        public async Task <int> AddMasterDocument(DocumentMaster documentmaster)
        {
            db.DocumentMaster.Add(documentmaster);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 15
0
        public async Task <int> AddShareholder(Shareholder Shareholder)
        {
            db.Shareholders.Add(Shareholder);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 16
0
        public async Task <int> AddQuery(Query query)
        {
            db.Queries.Add(query);
            await db.SaveChangesAsync();

            int insertedqueryid = query.QueryId;

            return(insertedqueryid);
        }
Esempio n. 17
0
        public async Task <int> AddCompany(Company company)
        {
            db.Companys.Add(company);
            await db.SaveChangesAsync();

            int insertedcompanyid = company.CompanyId;

            return(insertedcompanyid);
        }
Esempio n. 18
0
        public async Task <int> AddProject(Project project)
        {
            db.Projects.Add(project);
            await db.SaveChangesAsync();

            int insertedprojectid = project.ProjectId;

            return(insertedprojectid);
        }
Esempio n. 19
0
        public async Task <int> AddProjectActivityPlan(ProjectActivityPlan projectactivityplan)
        {
            db.ProjectActivityPlans.Add(projectactivityplan);
            await db.SaveChangesAsync();

            int insertedProjectPlanid = projectactivityplan.ProjectActivityPlanID;

            return(insertedProjectPlanid);
        }
Esempio n. 20
0
        public async Task <int> AddCustomer(Customer customer)
        {
            db.Customers.Add(customer);
            await db.SaveChangesAsync();

            int insertedcustomerid = customer.CustomerId;

            return(insertedcustomerid);
        }
Esempio n. 21
0
        public async Task <int> AddDocument(Document document)
        {
            db.Documents.Add(document);
            await db.SaveChangesAsync();

            int insertedDocumentid = document.DocumentID;

            return(insertedDocumentid);
        }
Esempio n. 22
0
        public async Task <int> AddGroup(Group group)
        {
            db.Groups.Add(group);
            await db.SaveChangesAsync();

            int insertedgroupid = group.GroupId;

            return(insertedgroupid);
        }
        public async Task <int> AdTaskTrackers(TaskTracker tasktracker)
        {
            db.TaskTrackers.Add(tasktracker);
            await db.SaveChangesAsync();

            int insertedTaskTrackerid = tasktracker.TaskTrackerID;

            return(insertedTaskTrackerid);
        }
Esempio n. 24
0
        public async Task <int> AddMail(Mail mail)
        {
            db.Mails.Add(mail);
            int result = await db.SaveChangesAsync();

            return(result);
        }
Esempio n. 25
0
        public async Task <int> AddActivity(ActivityTemplate activities)
        {
            db.ActivityTemplates.Add(activities);
            await db.SaveChangesAsync();

            int insertedActivitiesid = activities.ActivityID;

            return(insertedActivitiesid);
        }