public bool AddRegulatoryBodies(Int64 Id, AddRegulatoryBodies obj)
 {
     using (SqlCommand sqlCommand = new SqlCommand())
     {
         sqlCommand.CommandType = CommandType.StoredProcedure;
         sqlCommand.CommandText = Procedures.AddRegulatoryBodies;
         sqlCommand.Parameters.AddWithValue("@UserId", Id);
         sqlCommand.Parameters.AddWithValue("@RegulatoryBodyId", obj.RegulatoryBodyId);
         sqlCommand.Parameters.AddWithValue("@Name", obj.Name);
         sqlCommand.Parameters.AddWithValue("@IsActive", obj.Status);
         sqlCommand.Parameters.AddWithValue("@Emailid", obj.Emailid);
         sqlCommand.Parameters.AddWithValue("@Contact", obj.Contact);
         sqlCommand.Parameters.AddWithValue("@Address", obj.Address);
         return(Convert.ToBoolean(DAL.ExecuteNonQuery(ConfigurationHelper.connectionString, sqlCommand)));
     }
 }
Beispiel #2
0
 public bool AddRegulatoryBody(Int64 Id, AddRegulatoryBodies obj)
 {
     return(objRBS.AddRegulatoryBodies(Id, obj));
 }
Beispiel #3
0
        public IHttpActionResult AddRegulatoryBody(Int64 Id, AddRegulatoryBodies obj)
        {
            RegulatoryBodyBusinessService objRBS = new RegulatoryBodyBusinessService();

            return(Ok(objRBS.AddRegulatoryBody(Id, obj)));
        }