Beispiel #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();
        }
Beispiel #2
0
 public Task DeleteAsync(vChat parameters)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public HashSet <string> DeleteValidation(vChat parameters)
 {
     return(ValidationMessages);
 }
Beispiel #4
0
        public async Task UpdateAsync(vChat entity)
        {
            await Uow.RegisterDirtyAsync(entity);

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

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