public IActionResult Add([FromQuery] ClasssViewModel model)
        {
            var ClasssResponse = _ClasssService.Add(new Classs
            {
                ClassName = model.ClassName
            });

            if (ClasssResponse.IsSucceeded && ClasssResponse.Result != null)
            {
                return(Ok(ClasssResponse.Result));
            }
            return(ClasssResponse.HttpGetResponse());
        }
        public IActionResult Edit(int id, ClasssViewModel model)
        {
            var getClasss = _ClasssService.GetClasssById(id);

            if (getClasss != null && getClasss.IsSucceeded)

            {
                getClasss.Result.ClassName = model.ClassName;

                var updateResult = _ClasssService.Update(getClasss.Result);

                if (updateResult.IsSucceeded)

                {
                    return(Ok(updateResult.Result));
                }
                return(updateResult.HttpGetResponse());
            }
            return(getClasss.HttpGetResponse());
        }