public override async Task <int> HandleCommand(DeleteCommand request, CancellationToken cancellationToken)
 {
     return(await wardRepository.Delete(DeleteBuild(new Ward()
     {
         Id = request.WardId
     }, request.LoginSession)));
 }
Example #2
0
        public void DeleteWard(int id)
        {
            var wardEF = wardRepository.GetBy(id);

            wardRepository.Delete(wardEF);
        }