public bool UIConvertSaveNewStudy(Study newstudy) { //The 1st paremetr string notconvertCost = (newstudy.Cost.ToString().Contains(".") || newstudy.Cost.ToString().Contains(","))? newstudy.Cost.ToString().Replace(".", ",").Trim(): newstudy.Cost.ToString().Trim(); dalstudy.St_Cost = float.Parse(notconvertCost); //The 2dh paremetr dalstudy.St_Type = newstudy.Type; //The 3dh parametr dalstudy.St_Used = newstudy.Used; return(bll.BllSaveNewStudy(dalstudy.St_Type, dalstudy.St_Cost, dalstudy.St_Used)); }