public IActionResult Post([FromBody] KrsDetail value)
        {
            KrsDetailRepo krsDetail = new KrsDetailRepo();
            var           feedback  = krsDetail.insert(value);

            return(Ok(feedback));
        }
        public IActionResult Put([FromBody] KrsDetail value)
        {
            KrsDetailRepo krs = new KrsDetailRepo();

            if (krs.update(value) == true)
            {
                return(Ok(value));
            }
            else
            {
                var response = new ContentResult()
                {
                    StatusCode = StatusCodes.Status404NotFound,
                };
                return(response);
            }
        }
        public IActionResult Delete(int id)
        {
            KrsDetailRepo krs = new KrsDetailRepo();
            KrsDetail     kr  = new KrsDetail();

            kr.Id = id;
            if (krs.delete(kr) == true)
            {
                return(Ok(kr));
            }
            else
            {
                var response = new ContentResult()
                {
                    StatusCode = StatusCodes.Status404NotFound,
                };
                return(response);
            }
        }