public async Task <CancelReason> Create(CancelReason entity)
        {
            var reason = _repositoryCancelReason.FirstOrDefault(x => x.Id == entity.Id);

            if (reason != null)
            {
                throw new Abp.UI.UserFriendlyException("Cancel Reason Already exist");
            }

            else
            {
                return(await _repositoryCancelReason.InsertAsync(entity));
            }
        }
 public void Update(CancelReason entity)
 {
     _repositoryCancelReason.Update(entity);
 }