public async Task <IActionResult> generateField(filedForCreateDTO _filedForCreateDTO)
        {
            if (await _repository.UserExists(_filedForCreateDTO.fi_Name))
            {
                return(BadRequest("Field name already exists !!"));
            }

            var createToField = _mapper.Map <Fields>(_filedForCreateDTO);
            var createdField  = await _repository.GenerateField(createToField);

            var fieldToReturn = _mapper.Map <fieldForSelectDTO>(createdField);

            return(CreatedAtRoute("getFiled", new
            {
                Controller = "Field",
                id = createdField.id
            }, fieldToReturn));
        }