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