Example #1
0
        public async Task <object> GetAsync(vChat parameters)
        {
            await DbContextManager.BeginTransactionAsync();

            var spParameter = new SqlParameter[2];

            spParameter[0] = new SqlParameter()
            {
                ParameterName = "SenderId",
                Value         = parameters.SenderId
            };
            spParameter[1] = new SqlParameter()
            {
                ParameterName = "ReceiverId",
                Value         = parameters.ReceiverId
            };
            //throw new NotImplementedException();
            var result = await DbContextManager.StoreProc <StoreProcResult>("[dbo].ShowChat ", spParameter);

            return(await Task.FromResult(result));

            //throw new NotImplementedException();
        }
Example #2
0
 public Task DeleteAsync(vChat parameters)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public HashSet <string> DeleteValidation(vChat parameters)
 {
     return(ValidationMessages);
 }
Example #4
0
        public async Task UpdateAsync(vChat entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
Example #5
0
 public HashSet <string> UpdateValidation(vChat entity)
 {
     return(ValidationMessages);
 }
Example #6
0
        public async Task AddAsync(vChat entity)
        {
            await Uow.RegisterNewAsync(entity);

            await Uow.CommitAsync();
        }
Example #7
0
 public Task <object> GetBy(vChat parameters)
 {
     throw new NotImplementedException();
 }