public async Task <MajlesType> Create(MajlesType entity)
        {
            var MajlesType = _repositoryMajlesType.FirstOrDefault(x => x.Type == entity.Type);

            if (MajlesType != null)
            {
                throw new UserFriendlyException("Already Exist");
            }
            else
            {
                return(await _repositoryMajlesType.InsertAsync(entity));
            }
        }
 public void Update(MajlesType entity)
 {
     _repositoryMajlesType.Update(entity);
 }