public string EditFirewall(Associate.FirewallRequest firewall) { int RequestedID = Convert.ToInt32(firewall.id); int ProjectID = Convert.ToInt32(firewall.ProjectName); using (AssociateConnDataContext asscon = new AssociateConnDataContext()) { try { int retval = asscon.Edit_Firewall(RequestedID, firewall.FirewallRequestDesc, firewall.Destination, firewall.Source, firewall.Port, ProjectID); if (retval == 1) return "sucess"; else return "failure"; } catch (Exception ex) { throw ex; } } }