//---Remove Data--
        public bool RemoveRequirementDetails(RequirementDetailsRemoveDTO objRquirement)
        {
            bool       res    = false;
            SqlCommand sqlcmd = new SqlCommand("spDeleteRequirementDetails");

            sqlcmd.CommandType = CommandType.StoredProcedure;
            sqlcmd.Parameters.AddWithValue("@ClientId", objRquirement.ClientId);
            sqlcmd.Parameters.AddWithValue("@Designation", objRquirement.Designation);
            sqlcmd.Parameters.AddWithValue("@ActionBy", objRquirement.ActionBy);
            int result = new DbLayer().ExecuteNonQuery(sqlcmd);

            if (result != Int32.MaxValue)
            {
                res = true;
            }
            return(res);
        }
        public HttpResponseMessage RemoveRequirementDetails(RequirementDetailsRemoveDTO objRequirement)
        {
            HttpResponseMessage message;

            try
            {
                //  RequirementDetailsDataAccessLayer dal = new RequirementDetailsDataAccessLayer();
                var dynObj = new { result = _requirment.RemoveRequirementDetails(objRequirement) };
                message = Request.CreateResponse(HttpStatusCode.OK, dynObj);
            }
            catch (Exception ex)
            {
                message = Request.CreateResponse(HttpStatusCode.BadRequest, new { msgText = " Something wrong,try Again!" });
                ErrorLog.CreateErrorMessage(ex, "RequirementDetails", "RemoveRequirementDetails");
            }
            return(message);
        }